<?php
/**
 * fly example config
 * Copyright By 5920Team (http://www.5920.me)
 * User: yu@5920.me
 * Date: 13-9-26
 * Time: 上午11:23
 */
/** define web path */
define('FLY_WEB_PATH', dirname(__FILE__));
/** define cache path */
define('FLY_CACHE_PATH', FLY_WEB_PATH . '/cache');

define('FLY_MODULE_PATH', FLY_WEB_PATH . '/Module');

/** define debug switch*/
$fly['is_debug'] = true;

/** define fly example classes auto load path array */
$fly['autoloader']['app_classes_path'] = array(
    FLY_MODULE_PATH
);

$fly['autoloader']['cache_switch'] = !$fly['is_debug'];

/**
 * router method
 * 1 = default  index.php?m=?&a=?
 */
$fly['router']['method'] = 1;
$fly['router']['module_postfix'] = 'Module';
$fly['router']['default_module'] = 'index';
$fly['router']['default_action'] = 'run';

/**
 * Template
 */
$fly['template']['path'] = FLY_WEB_PATH . '/template';
$fly['template']['extension'] = '.html';

$fly['template']['cache_switch'] = !$fly['is_debug'];
$fly['template']['cache_extension'] = '.php';
$fly['template']['cache_path'] = FLY_CACHE_PATH . '/template_c';
